<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//登录
Route::group(function () {
    Route::post('pwdLogin', 'Login/pwdLogin');
    Route::get('checkLogin', 'Login/checkLogin');
    Route::post('logout', 'Login/logout');
    Route::post('reUpdatePwd', 'Login/reUpdatePwd');
    Route::get('getUserInfo', 'User/getUserInfo');
});

//个人数据接口
Route::group('personalData', function () {
    Route::get('getHomeTjData', 'Personal/homeTjData');
    Route::get('getPosterImage', 'Personal/posterImage');
});

//预约管理
Route::group('core/coreCourseAppointment', function () {
    Route::post('listPage', 'core.CoreCourseAppointment/listPage');
    Route::post('get', 'core.CoreCourseAppointment/get');
    Route::post('trainerAppointment', 'core.CoreCourseAppointment/trainerAppointment');
    Route::post('timeAppointment', 'core.CoreCourseAppointment/timeAppointment');
    Route::post('updateAppointment', 'core.CoreCourseAppointment/updateAppointment');
    Route::post('cancelAppointment', 'core.CoreCourseAppointment/cancelAppointment');
});

//体验课订单
Route::group('core/coreTrialClassOrder', function () {
    Route::post('listPage', 'core.CoreTrialClassOrder/listPage');
    Route::post('get', 'core.CoreTrialClassOrder/get');
    Route::post('placeTrialClassOrder', 'core.CoreTrialClassOrder/placeTrialClassOrder');
    Route::post('trialClassAppointment', 'core.CoreTrialClassOrder/trialClassAppointment');
    Route::post('queryOrderStatus', 'core.CoreTrialClassOrder/queryOrderStatus');
});

//上课记录
Route::group('learn/learnSkRecord', function () {
    Route::post('listPage', 'learn.LearnSkRecord/listPage');
    Route::post('get', 'learn.LearnSkRecord/get');
    Route::post('exportExcel', 'learn.LearnSkRecord/exportExcel');
});

//学习记录
Route::group('learn/learnSubjectQuestionRecord', function () {
    Route::post('listPage', 'learn.LearnSubjectQuestionRecord/listPage');
    Route::post('get', 'learn.LearnSubjectQuestionRecord/get');
});

//学习记录答题记录
Route::group('learn/learnSubjectQuestionAnswerRecord', function () {
    Route::post('listPage', 'learn.LearnSubjectQuestionAnswerRecord/listPage');
    Route::post('get', 'learn.LearnSubjectQuestionAnswerRecord/get');
});

//21天抗遗忘
Route::group('learn/learnTwentyAntiForgetting', function () {
    Route::post('listPage', 'learn.learnTwentyAntiForgetting/listPage');
    Route::post('get', 'learn.learnTwentyAntiForgetting/get');
    Route::post('updateTrainer', 'learn.learnTwentyAntiForgetting/updateTrainer');
    Route::post('updateTrainerSkAll', 'learn.learnTwentyAntiForgetting/updateTrainerSkAll');
    Route::get('getReport', 'learn.learnTwentyAntiForgetting/getReport');
});

//全科抗遗忘
Route::group('learn/learnSubjectAntiForgetting', function () {
    Route::post('listPage', 'learn.LearnSubjectAntiForgetting/listPage');
    Route::post('get', 'learn.LearnSubjectAntiForgetting/get');
    Route::post('updateTrainer', 'learn.LearnSubjectAntiForgetting/updateTrainer');
    Route::post('updateTrainerSkAll', 'learn.LearnSubjectAntiForgetting/updateTrainerSkAll');
    Route::get('getReport', 'learn.LearnSubjectAntiForgetting/getReport');
});

//测试记录
Route::group('learn/learnVocabularyRecord', function () {
    Route::post('listPage', 'learn.LearnVocabularyRecord/listPage');
    Route::post('get', 'learn.LearnVocabularyRecord/get');
    Route::get('getReport', 'learn.LearnVocabularyRecord/getReport');
});

//上课-阅读理解记录
Route::group('learn/learnReading', function () {
    Route::post('listPage', 'learn.LearnReading/listPage');
    Route::post('get', 'learn.LearnReading/get');
    Route::post('exportExcel', 'learn.LearnReading/exportExcel');
});

//阅读理解文章记录
Route::group('learn/learnReadingArticle', function () {
    Route::post('listPage', 'learn.learnReadingArticle/listPage'); //分页查询
    Route::post('get', 'learn.learnReadingArticle/get');//查询
    Route::post('del', 'learn.learnReadingArticle/del');//删除
});

//听力记录
Route::group('learn/learnHearingRecord', function () {
    Route::post('listPage', 'learn.LearnHearingRecord/listPage');
    Route::post('get', 'learn.LearnHearingRecord/get');
});

//课时明细
Route::group('core/coreClassHourDetail', function () {
    Route::post('listPage', 'core.coreClassHourDetail/listPage');
    Route::post('get', 'core.coreClassHourDetail/get');
    Route::post('exportExcel', 'core.coreClassHourDetail/exportExcel');
});

//课时交易流水
Route::group('core/coreClassHourRw', function () {
    Route::post('listPage', 'core.coreClassHourRw/listPage'); //分页查询
    Route::post('get', 'core.coreClassHourRw/get');//查询
});

//佣金流水
Route::group('core/coreBrokerageRw', function () {
    Route::post('listPage', 'core.coreBrokerageRw/listPage'); //分页查询
    Route::post('get', 'core.coreBrokerageRw/get');//查询
});

//账户数据
Route::group('core/coreAccountData', function () {
    Route::get('getMyAccountData', 'core.CoreAccountData/getMyAccountData'); //分页查询
});

//佣金提现
Route::group('core/coreBrokerageWithdraw', function () {
    Route::post('listPage', 'core.coreBrokerageWithdraw/listPage'); //分页查询
    Route::post('get', 'core.coreBrokerageWithdraw/get');//查询
    Route::post('withdrawApply', 'core.coreBrokerageWithdraw/withdrawApply');//查询
});


//学员
Route::group('student/student', function () {
    Route::post('listPage', 'student.Student/listPage');
    Route::post('listSelectPage', 'student.Student/listSelectPage');
    Route::post('listSelectClassHourPage', 'student.Student/listSelectClassHourPage');
    Route::post('get', 'student.Student/get');
    Route::post('enable', 'student.Student/enable');
    Route::post('saveOrUpdate', 'student.student/saveOrUpdate');
});

//课时
Route::group('core/coreAccountClassHour', function () {
    Route::get('getAccountClassHour', 'core.CoreAccountClassHour/getAccountClassHour');
    Route::get('getMyAccountClassHour', 'core.CoreAccountClassHour/getMyAccountClassHour');
    Route::get('getIsPaySuccess', 'core.CoreAccountClassHour/getIsPaySuccess');
    Route::post('rechargeStudent', 'core.CoreAccountClassHour/rechargeStudent');
    Route::post('rechargeOrgan', 'core.CoreAccountClassHour/rechargeOrgan');
    Route::post('refundOrgan', 'core.CoreAccountClassHour/refundOrgan');
    Route::post('cancelPay', 'core.CoreAccountClassHour/cancelPay');
});

//学员开通课程
Route::group('student/studentCourse', function () {
    Route::post('listPage', 'student.StudentCourse/listPage');
    Route::post('get', 'student.StudentCourse/get');
    Route::post('saveOrUpdate', 'student.StudentCourse/saveOrUpdate');
    Route::post('del', 'student.StudentCourse/del');
    Route::post('openCourse', 'student.StudentCourse/openCourse');
});

//年级
Route::group('student/grade', function () {
    Route::post('listPage', 'student.Grade/listPage');
    Route::post('listSelectPage', 'student.Grade/listSelectPage');
    Route::post('get', 'student.Grade/get');
    Route::post('saveOrUpdate', 'student.Grade/saveOrUpdate');
    Route::post('del', 'student.Grade/del');
});

//机构
Route::group('organ/organization', function () {
    Route::post('listPage', 'organization.Organization/listPage');
    Route::post('listSelectPage', 'organization.Organization/listSelectPage');
    Route::post('listLevelSelectPage', 'organization.Organization/listLevelSelectPage');
    Route::post('get', 'organization.Organization/get');
    Route::post('saveOrUpdate', 'organization.organization/saveOrUpdate');
    Route::post('enable', 'organization.organization/enable');
    Route::get('getMyLevelConfig', 'organization.organization/getMyLevelConfig');
    Route::get('getLevelConfig', 'organization.organization/getLevelConfig');
});

//机构数据
Route::group('organ/organizationData', function () {
    Route::get('getMyOrganizationData', 'organization.OrganizationData/getMyOrganizationData');
});

//机构等级配置
Route::group('organ/organizationLevelConfig', function () {
    Route::post('listSelectPage', 'organization.OrganizationLevelConfig/listSelectPage');
});

//机构开户申请
Route::group('organ/organizationOpenApply', function () {
    Route::post('listPage', 'organization.organizationOpenApply/listPage');
    Route::post('openApply', 'organization.organizationOpenApply/openApply');
    Route::post('get', 'organization.organizationOpenApply/get');
    Route::post('del', 'organization.organizationOpenApply/del');
});


//合伙人名额申请
Route::group('organ/organizationQuotaApply', function () {
    Route::post('listPage', 'organization.OrganizationQuotaApply/listPage');
    Route::post('get', 'organization.OrganizationQuotaApply/get');
    Route::post('applyQuota', 'organization.OrganizationQuotaApply/applyQuota');
});

//合伙人名额明细
Route::group('organ/organizationQuotaRw', function () {
    Route::post('listPage', 'organization.OrganizationQuotaRw/listPage');
    Route::post('get', 'organization.OrganizationQuotaRw/get');
    Route::post('exportExcel', 'organization.OrganizationQuotaRw/exportExcel');
});

//教练审核
Route::group('trainer/trainerAudit', function () {
    Route::post('listPage', 'trainer.TrainerAudit/listPage');
    Route::post('updateInfo', 'trainer.TrainerAudit/updateInfo');
    Route::post('get', 'trainer.TrainerAudit/get');
    Route::post('del', 'trainer.TrainerAudit/del');
});

//课程
Route::group('course/course', function () {
    Route::post('listPage', 'course.Course/listPage');
    Route::post('get', 'course.Course/get');
    Route::post('listStudentPage', 'course.Course/listStudentPage');
    Route::post('listStudentOpenPage', 'course.Course/listStudentOpenPage');
});

//课程字典
Route::group('course/courseDict', function () {
    Route::post('listPage', 'course.CourseDict/listPage');
    Route::post('listSelectPage', 'course.CourseDict/listSelectPage');
    Route::post('get', 'course.CourseDict/get');
});

//教练
Route::group('trainer/trainer', function () {
    Route::post('listPage', 'trainer.Trainer/listPage');
    Route::post('listSelectPage', 'trainer.Trainer/listSelectPage');
    Route::post('get', 'trainer.Trainer/get');
    Route::post('listAppointmentPage', 'trainer.Trainer/listAppointmentPage');
    Route::post('saveOrUpdate', 'trainer.Trainer/saveOrUpdate');
    Route::post('enable', 'trainer.Trainer/enable');
});

Route::group('trainer/trainerTitle', function () {
    Route::post('listSelectPage', 'trainer.trainerTitle/listSelectPage');
});

//教练薪资
Route::group('core/coreTrainerSalary', function () {
    Route::post('listPage', 'core.CoreTrainerSalary/listPage');
});

//薪资计算
Route::group('core/coreTrainerMonthSalary', function () {
    Route::post('listPage', 'core.CoreTrainerMonthSalary/listPage');
    Route::post('get', 'core.CoreTrainerMonthSalary/get');
    Route::post('exportExcel', 'core.CoreTrainerMonthSalary/exportExcel');
});

//消息管理
Route::group('system/sysNotification', function () {
    Route::get('listMyNotification', 'system.SysNotification/listMyNotification');
    Route::get('getNotificationInfo', 'system.SysNotification/getNotificationInfo');
});


//语句类型
Route::group('say/category', function () {
    Route::post('listSelectPage', 'say.Category/listSelectPage');
});

Route::group('say/grade', function () {
    Route::post('listSelectPage', 'say.Grade/listSelectPage');
});

//语句课程-句型课
Route::group('say/teachSentence', function () {
    Route::post('listPage', 'say.TeachSentence/listPage');
    Route::post('listStudentOpenPage', 'say.TeachSentence/listStudentOpenPage');
    Route::post('listStudentPage', 'say.TeachSentence/listStudentPage');
});


//学习中心
Route::group('say/studyVideo', function () {
    Route::post('listPage', 'say.StudyVideo/listPage');
    Route::post('get', 'say.StudyVideo/get');
});

//测试记录
Route::group('learn/learnSayVocabularyRecord', function () {
    Route::post('listPage', 'learn.LearnSayVocabularyRecord/listPage');
    Route::post('get', 'learn.LearnSayVocabularyRecord/get');
    Route::get('getReport', 'learn.LearnSayVocabularyRecord/getReport');
});




